package com.qiaofang.applet.service.property.service.mapstruct;

import com.qiaofang.applet.service.property.domain.Area;
import com.qiaofang.applet.service.property.service.dto.AreaDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AreaMapper {

    AreaDto domainToDto(Area area);

    List<AreaDto> domainToDto(List<Area> areaList);

}
